package com.ruoyi.project.system.comment.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import java.util.Date;

/**
 * 评论对象 biz_comment
 * 
 * @author ruoyi
 * @date 2020-05-01
 */
public class BizComment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Integer id;

    /** 回复id */
    @Excel(name = "回复id")
    private Integer pid;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String content;

    /** 评论人名称 */
    @Excel(name = "评论人名称")
    private String personName;

    /** 评论人头像 */
    @Excel(name = "评论人头像")
    private String personHeadUrl;

    /** 评论时间 */
    @Excel(name = "评论时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date commentTime;

    /** 评论文章id */
    @Excel(name = "评论文章id")
    private Integer articleId;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setPid(Integer pid) 
    {
        this.pid = pid;
    }

    public Integer getPid() 
    {
        return pid;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setPersonName(String personName) 
    {
        this.personName = personName;
    }

    public String getPersonName() 
    {
        return personName;
    }
    public void setPersonHeadUrl(String personHeadUrl) 
    {
        this.personHeadUrl = personHeadUrl;
    }

    public String getPersonHeadUrl() 
    {
        return personHeadUrl;
    }
    public void setCommentTime(Date commentTime) 
    {
        this.commentTime = commentTime;
    }

    public Date getCommentTime() 
    {
        return commentTime;
    }
    public void setArticleId(Integer articleId) 
    {
        this.articleId = articleId;
    }

    public Integer getArticleId() 
    {
        return articleId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("pid", getPid())
            .append("content", getContent())
            .append("personName", getPersonName())
            .append("personHeadUrl", getPersonHeadUrl())
            .append("commentTime", getCommentTime())
            .append("articleId", getArticleId())
            .toString();
    }
}
